Function Lfp Applies a Function F to an Argument 5.6 Implementation 5.2 Finding Function K 4.4 Implementation 4.2 Generating Trees Fixed Points Catamorphisms on Rose-trees 2.1 Implementation Lattices and Cpo's Parse Trees Bottom-up Grammar Analysis | a Functional Formulation |

نویسندگان

  • J. W. de Bakker
  • M. Hazewinkel
چکیده

x until it reaches a xed point. In order to determine whether an argument is a xed point, f x is compared with x. In the case of grammar analysis problems, the rst components of the elements of the grammar analysis problems are always the nonterminals of the given grammar. It follows that the rst components of the elements of f x and x are always equal, and that equality depends just on the second components of the problems. The rst condition of function lfp may be replaced by map snd x = map snd (f x). 6 Conclusions This paper discusses bottom-up grammar analysis problems. We give a very general specii-cation of bottom-up grammar analysis problems, and from this speciication we derive, by means of program transformation applying laws to the components of the intermediate expressions, an algorithm for performing bottom-up grammar analysis. The driving force in the derivation of the algorithm is the construction of a xed point. To obtain such a xed point a number of conditions have to be imposed upon the components of the bottom-up grammar analysis problem. Thus we derive both the algorithm and the conditions under which the xed point exists in one go. The derivation is an example of a derivation of a real-world program, which would have been diicult to obtain without a derivation. The research reported on in this paper is still in progress: in the next version we want to split the calculation in two parts. The rst part of the derivation assumes that the function that computes the property of a parse tree is a Rosetree catamorphism and the second part of the derivation adds, if necessary , the extra information (for example in the case of rsts, where we use information about the empties). This simpliies the derivation. Future research will be directed towards the derivation of an algorithm for top-down grammar analysis. =) sen)) x = deenition of qn (see below), and p qn nt (p x) Function qn is deened by qn nt x = and x Furthermore, we have to show that ^, the operator of the reduction for and, distributes over _, that is, a ^ (b _ c) = (a ^ b) _ (a ^ c) (a _ b) ^ c = (a ^ c) _ (b ^ c) and that false is a zero of ^. These equalities hold for false, …

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

On trees with equal Roman domination and outer-independent Roman domination numbers

A Roman dominating function (RDF) on a graph $G$ is a function $f : V (G) to {0, 1, 2}$satisfying the condition that every vertex $u$ for which $f(u) = 0$ is adjacent to at least onevertex $v$ for which $f(v) = 2$. A Roman dominating function $f$ is called an outer-independentRoman dominating function (OIRDF) on $G$ if the set ${vin Vmid f(v)=0}$ is independent.The (outer-independent) Roman dom...

متن کامل

Co-Roman domination in trees

Abstract: Let G=(V,E) be a graph and let f:V(G)→{0,1,2} be a function‎. ‎A vertex v is protected with respect to f‎, ‎if f(v)>0 or f(v)=0 and v is adjacent to a vertex of positive weight‎. ‎The function f is a co-Roman dominating function‎, ‎abbreviated CRDF if‎: ‎(i) every vertex in V is protected‎, ‎and (ii) each u∈V with positive weight has a neighbor v∈V with f(v)=0 such that the func...

متن کامل

Outer independent Roman domination number of trees

‎A Roman dominating function (RDF) on a graph G=(V,E) is a function  f : V → {0, 1, 2}  such that every vertex u for which f(u)=0 is‎ ‎adjacent to at least one vertex v for which f(v)=2‎. ‎An RDF f is called‎‎an outer independent Roman dominating function (OIRDF) if the set of‎‎vertices assigned a 0 under f is an independent set‎. ‎The weight of an‎‎OIRDF is the sum of its function values over ...

متن کامل

Roman domination excellent graphs: trees

A Roman dominating function (RDF) on a graph $G = (V, E)$ is a labeling $f : V rightarrow {0, 1, 2}$ suchthat every vertex with label $0$ has a neighbor with label $2$. The weight of $f$ is the value $f(V) = Sigma_{vin V} f(v)$The Roman domination number, $gamma_R(G)$, of $G$ is theminimum weight of an RDF on $G$.An RDF of minimum weight is called a $gamma_R$-function.A graph G is said to be $g...

متن کامل

Some Issues in Implementation of a Voltage Stability Analysis Function in an Energy Management System Environment

Over the last few years, the problem of voltage stability has received a lot of attraction from the power system community. This type of stability is now a major concern for utilities in both planning and operating conditions. Both static and dynamic aspects of the problem have been discussed and investigated by the researchers. The present paper concentrates on a Voltage Stability Analysis fun...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 1994